<?php

require_once 'psk_dbvisualtable.php';

class PostList extends PSK_DBVisualTable
{
	function __construct($par_Owner)
	{
		parent::__construct($par_Owner, 'posts');
		$this->setIndex('post_date DESC');
		$this->EnableEditing();
		
		$this->AddFields(array('id_posts', 'title', 'post_date'));
		
		$this->Column('title')->titleTag->inner = 'Başlık';
		$this->Column('post_date')->titleTag->inner = 'Tarih';
	}
}